package org.feiye.studyday02.practice;

import java.util.Scanner;

public class Salary {

	public static void main(String[] args) {
		// 书上第二章练习1
		Scanner input = new Scanner(System.in);
		System.out.println("请输入基本工资：");
		int baseSalary = input.nextInt();
		double wuJia = baseSalary * 0.4;
		double fangZu = baseSalary * 0.25;
		double sumSalary = baseSalary + wuJia + fangZu;
		System.out.println("该员工的工资细目为：");
		System.out.println("基本工资为：" + baseSalary);
		System.out.println("物价津贴为：" + wuJia);
		System.out.println("房租津贴为：" + fangZu);
		System.out.println("员工薪水为：" + sumSalary);
	}

}
